package com.maket.scxx.service.impl;

import java.util.List;

import com.maket.scxx.domain.GxProcessAndGylxProcessRoute;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.maket.scxx.mapper.GylxProcessRouteMapper;
import com.maket.scxx.domain.GylxProcessRoute;
import com.maket.scxx.service.IGylxProcessRouteService;

/**
 * 工艺路线Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-01
 */
@Service
public class GylxProcessRouteServiceImpl implements IGylxProcessRouteService 
{
    @Autowired
    private GylxProcessRouteMapper gylxProcessRouteMapper;

    /**
     * 查询工艺路线
     * 
     * @param gyroadCode 工艺路线主键
     * @return 工艺路线
     */
    @Override
    public GylxProcessRoute selectGylxProcessRouteByGyroadCode(String gyroadCode)
    {
        return gylxProcessRouteMapper.selectGylxProcessRouteByGyroadCode(gyroadCode);
    }

    /**
     * 查询工艺路线列表
     * 
     * @param gylxProcessRoute 工艺路线
     * @return 工艺路线
     */
    @Override
    public List<GylxProcessRoute> selectGylxProcessRouteList(GylxProcessRoute gylxProcessRoute)
    {
        return gylxProcessRouteMapper.selectGylxProcessRouteList(gylxProcessRoute);
    }

    /**
     * 新增工艺路线
     * 
     * @param gylxProcessRoute 工艺路线
     * @return 结果
     */
    @Override
    public int insertGylxProcessRoute(GylxProcessRoute gylxProcessRoute)
    {
        return gylxProcessRouteMapper.insertGylxProcessRoute(gylxProcessRoute);
    }

    /**
     * 修改工艺路线
     * 
     * @param gylxProcessRoute 工艺路线
     * @return 结果
     */
    @Override
    public int updateGylxProcessRoute(GylxProcessRoute gylxProcessRoute)
    {
        return gylxProcessRouteMapper.updateGylxProcessRoute(gylxProcessRoute);
    }

    /**
     * 批量删除工艺路线
     * 
     * @param gyroadCodes 需要删除的工艺路线主键
     * @return 结果
     */
    @Override
    public int deleteGylxProcessRouteByGyroadCodes(String[] gyroadCodes)
    {
        return gylxProcessRouteMapper.deleteGylxProcessRouteByGyroadCodes(gyroadCodes);
    }

    /**
     * 删除工艺路线信息
     * 
     * @param gyroadCode 工艺路线主键
     * @return 结果
     */
    @Override
    public int deleteGylxProcessRouteByGyroadCode(String gyroadCode)
    {
        return gylxProcessRouteMapper.deleteGylxProcessRouteByGyroadCode(gyroadCode);
    }

}
